using System;
using System.Drawing;
using System.Windows.Forms;

namespace Hanoi.Utils
{
    /// <summary>
    /// A Standard disk of the game.
    /// </summary>
    public class Disk
    {
        #region Properties and class members
        private int _value;

        /// <summary>
        /// A value for a Disk, it means its size or order.
        /// </summary>
        public int Value
        {
            get { return _value; }
            set { _value = value; }
        }

        private Point _position;

        /// <summary>
        /// Gets the current position of the disk
        /// - X means the tower number.
        /// - Y means the vertical position.
        /// </summary>
        public Point Position
        {
            get { return _position; }
            set { _position = value; }
        }

        /// <summary>
        /// Gets the tower number.
        /// </summary>
        public int Tower
        {
            get
            {
                return _position.X;
            }
        } 
        #endregion

        public Disk(int value, Point position)
        {
            _value = value;
            _position = position;
        }

    }
}
